package com.lancoo.klgcourseware.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.Gson;

import java.io.Serializable;
import java.util.List;

public class MoreSlideMenuModel implements Parcelable {

    //模块名称
    private String moduleName;
    //模块标志
    private String moduleTag;
    //训练是否过关(0-false,1-true)
    private int isPass;
    //是否选中状态(0-false,1-true)
    private int selected;
    //是否是推荐模块(0-false,1-true)
    private int isRecomModule;

    public MoreSlideMenuModel() {
    }

    public MoreSlideMenuModel(String moduleName,String moduleTag){
        this.moduleName = moduleName;
        this.moduleTag=moduleTag;
    }

    public MoreSlideMenuModel(String moduleName,String moduleTag,int isRecomModule){
        this.moduleName = moduleName;
        this.moduleTag=moduleTag;
        this.isRecomModule=isRecomModule;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getModuleTag() {
        return moduleTag;
    }

    public void setModuleTag(String moduleTag) {
        this.moduleTag = moduleTag;
    }

    public int getIsPass() {
        return isPass;
    }

    public void setIsPass(int isPass) {
        this.isPass = isPass;
    }

    public int getSelected() {
        return selected;
    }

    public void setSelected(int selected) {
        this.selected = selected;
    }

    public int getIsRecomModule() {
        return isRecomModule;
    }

    public void setIsRecomModule(int isRecomModule) {
        this.isRecomModule = isRecomModule;
    }

    @Override
    public int describeContents() {
        return 0;
    }


    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(moduleName);
        dest.writeString(moduleTag);
        dest.writeInt(isPass);
        dest.writeInt(selected);
        dest.writeInt(isRecomModule);
    }

    protected MoreSlideMenuModel(Parcel in) {
        moduleName=in.readString();
        moduleTag=in.readString();
        isPass=in.readInt();
        selected=in.readInt();
        isRecomModule=in.readInt();
    }

    public static final Creator<MoreSlideMenuModel> CREATOR = new Creator<MoreSlideMenuModel>() {
        @Override
        public MoreSlideMenuModel createFromParcel(Parcel in) {
            return new MoreSlideMenuModel(in);
        }

        @Override
        public MoreSlideMenuModel[] newArray(int size) {
            return new MoreSlideMenuModel[size];
        }
    };
}
